package com.tsingteng.cosfun.widget;

import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.ViewGroup;
import android.widget.LinearLayout;

/**
 * 描述 :
 * 创建人: 肖利.
 * 时间:2018/8/18
 * qq(872179966)
 */

public class LineNumberView extends LinearLayout {

    private LinearLayout lineView;

    public LineNumberView(Context context) {
        super(context);
        initView(context);
    }

    public LineNumberView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        initView(context);
    }

    public LineNumberView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        initView(context);
    }

    private void initView(Context context) {
        setOrientation(VERTICAL);
        lineView = new LinearLayout(context);
        lineView.setOrientation(HORIZONTAL);
        LayoutParams layoutParams = new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
        addView(lineView,layoutParams);
    }

//    public LineNumberView setItem()
}
